const express = require('express');
const UserRightsAction = require('../../action/userRightsAction');
let router = express.Router();


router.post('/update', function (req, res) {
    UserRightsAction.updateRights(req.body).then(res.res, res.rej);
});
router.post('/query', function (req, res) {
    UserRightsAction.queryRights(req.body).then(res.res, res.rej);
});

module.exports = router;